<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ include file="../include/head.jsp" %>
<%@ include file="../include/top.jsp" %>
<%@ include file="../include/left.jsp" %>
<div class="main-content">

    <%@ include file="../include/navigate.jsp" %>
    
    <div class="container">

        <c:if test="${error != null }">
            <div class="alert alert-danger alert-dismissable">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <strong>异常:</strong> ${error}
            </div>
        </c:if>
        <c:if test="${msg != null }">
            <div class="alert alert-success alert-dismissable">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <strong>提示:</strong> ${msg}
            </div>
        </c:if>
        <div class="widget-box">
            <div class="widget-box-header">
                <div class="col-sm-9">
                    <div class="title">驱动列表</div>
                </div>
                <div class="col-sm-3"  style="text-align:right;">
                	<c:if test="${sessionScope.validUrls.contains('/databasetype/add')}">
	                    <div class="btn-group-sm" style="padding:2px;">
	                        <a type="button" class="btn btn-default btn-sm glyphicon glyphicon-plus"
	                           href="${pageContext.request.contextPath}/databasetype/add"> 添加
	                        </a>
	                    </div>
                    </c:if>
                </div>
            </div>
            <div class="widget-box-content" style="padding:15px;">
            
				<%-- <form action="${pageContext.request.contextPath}/servlet/UploadHandleServlet" enctype="multipart/form-data" method="post">
					<input type="file" name="file1">
					<input type="submit" value="上传"></input>
				</form> --%>

				<table class="tableComponent table table-hover" width="100%">
					<tbody>
						<c:forEach items="${jarFiles}" var="jarFile">
							<tr>
								<td>${jarFile}</td>
								<td style="text-align:right;"><button type="button" class="btn btn-danger" onclick="openModal('${pageContext.request.contextPath}/cronJob/deleteJob?page=${page}','删除jar包？','确定删除？')">删除</button></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>

			</div>
        </div>
    </div>
    <div style="position:fixed;bottom:0px; width:100%;" align="center">
        <%@ include file="../include/footer.jsp" %>
    </div>
</div>
<%@ include file="../include/bottom.jsp" %>
